package com.qf.pojo;

public class Jiudian {
    private Integer jid;

    private String jname;

    private String jimg;

    private String jaddress;

    private String jping;

    private String jtype;

    //一个酒店对应一个房型
    private Fangxing fangxing;

    public Fangxing getFangxing() {
        return fangxing;
    }

    public void setFangxing(Fangxing fangxing) {
        this.fangxing = fangxing;
    }

    public Integer getJid() {
        return jid;
    }

    public void setJid(Integer jid) {
        this.jid = jid;
    }

    public String getJname() {
        return jname;
    }

    public void setJname(String jname) {
        this.jname = jname == null ? null : jname.trim();
    }

    public String getJimg() {
        return jimg;
    }

    public void setJimg(String jimg) {
        this.jimg = jimg == null ? null : jimg.trim();
    }

    public String getJaddress() {
        return jaddress;
    }

    public void setJaddress(String jaddress) {
        this.jaddress = jaddress == null ? null : jaddress.trim();
    }

    public String getJping() {
        return jping;
    }

    public void setJping(String jping) {
        this.jping = jping == null ? null : jping.trim();
    }

    public String getJtype() {
        return jtype;
    }

    public void setJtype(String jtype) {
        this.jtype = jtype == null ? null : jtype.trim();
    }

    public Jiudian() {
    }

    public Jiudian(Integer jid, String jname, String jimg, String jaddress, String jping, String jtype) {
        this.jid = jid;
        this.jname = jname;
        this.jimg = jimg;
        this.jaddress = jaddress;
        this.jping = jping;
        this.jtype = jtype;
    }

    public Jiudian(String jname, String jimg, String jaddress, String jping, String jtype) {
        this.jname = jname;
        this.jimg = jimg;
        this.jaddress = jaddress;
        this.jping = jping;
        this.jtype = jtype;
    }

    @Override
    public String toString() {
        return "Jiudian{" +
                "fangxing=" + fangxing +
                ", jid=" + jid +
                ", jname='" + jname + '\'' +
                ", jimg='" + jimg + '\'' +
                ", jaddress='" + jaddress + '\'' +
                ", jping='" + jping + '\'' +
                ", jtype='" + jtype + '\'' +
                '}';
    }
}
